package com.jiwei.community.service.impl;

import com.jiwei.community.service.UploadService;
import com.jiwei.community.utils.UploadUtils;
import com.jiwei.community.vo.ResponseResult;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 季伟
 * @date 2024/4/15
 */
@Service
public class UploadServiceImpl implements UploadService {
    @Override
    public ResponseResult uploadImage(MultipartFile file) {
        return ResponseResult.okResult(UploadUtils.uploadImage(file),"上传成功");
    }
}
